package com.teemo.equipment.service;

import com.teemo.equipment.domain.entity.FileUpload;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

/**
 * @author 13348
 * @description 针对表【lol_file_upload(文件上传表)】的数据库操作Service
 * @createDate 2024-07-19 22:16:13
 */
public interface FileUploadService extends IService<FileUpload> {

    /**
     * 文件上传
     *
     * @param file
     * @return
     */
    Long upload(MultipartFile file);

    /**
     * 下载文件
     *
     * @param fileId
     * @param response
     */
    void download(Long fileId, HttpServletResponse response);


    /**
     * 文件上传
     *
     * @param file
     * @return
     */
    Long upload(File file);
}
